<template>
    <div class="gooddesccontainer">
        <h3>{{info.title}}</h3>
        <hr>
        <div class="content" v-html="info.content">

        </div>
    </div>
</template>
<style lang="scss" scoped>
.gooddesccontainer{
    padding:4px;
    h3{
        font-size: 16px;
        color: #226aff;
        text-align: center;
        margin: 15px 0;
    }
    .content{
        img{
            width: 100%;
        }
    }
}
</style>
<script>
export default {
    data(){
        return {
            id:this.$route.params.id,
            info:{}
        }
    },
    created(){
        this.getInfo();
    },
    methods:{
        getInfo(){
            this.$http.get("getEssayInfoById?id="+this.id).then(res=>{
                this.info=res.body.data
            })
        }
    }
}
</script>